Platform Explorer / Nuxeo Platform 5.8

Contribution org.nuxeo.dam.contentviews--contentViews

This contribution is part of XML component org.nuxeo.dam.contentviews inside nuxeo-dam-jsf-5.8.jar

Extension Point

Extension point contentViews of component ContentViewService.

Contributed Items

  • <contentView name="dam_search">
          <title>label.dam.search</title>
          <translateTitle>true</translateTitle>
          <emptySentence>label.content.empty.search</emptySentence>
          <translateEmptySentence>true</translateEmptySentence>
    
          <coreQueryPageProvider>
            <property name="coreSession">#{documentManager}</property>
            <property name="maxResults">DEFAULT_NAVIGATION_RESULTS</property>
            <whereClause docType="DamSearch">
              <fixedPart>
                ecm:mixinType = 'Asset' AND ecm:mixinType != 'HiddenInNavigation' AND ecm:isProxy = 0
                AND ecm:isCheckedInVersion = 0 AND ecm:currentLifeCycleState != 'deleted'
              </fixedPart>
              <predicate operator="FULLTEXT" parameter="ecm:fulltext">
                <field name="ecm_fulltext" schema="dam_search"/>
              </predicate>
              <predicate operator="IN" parameter="dc:creator">
                <field name="dc_creator" schema="dam_search"/>
              </predicate>
              <predicate operator="LIKE" parameter="damc:author">
                <field name="damc_author" schema="dam_search"/>
              </predicate>
              <predicate operator="BETWEEN" parameter="dc:created">
                <field name="dc_created_min" schema="dam_search"/>
                <field name="dc_created_max" schema="dam_search"/>
              </predicate>
              <predicate operator="BETWEEN" parameter="damc:authoringDate">
                <field name="damc_authoringDate_min" schema="dam_search"/>
                <field name="damc_authoringDate_max" schema="dam_search"/>
              </predicate>
              <predicate operator="STARTSWITH" parameter="dc:subjects">
                <field name="dc_subjects" schema="dam_search"/>
              </predicate>
              <predicate operator="STARTSWITH" parameter="dc:coverage">
                <field name="dc_coverage" schema="dam_search"/>
              </predicate>
              <predicate operator="STARTSWITH" parameter="ecm:path">
                <field name="ecm_path" schema="dam_search"/>
              </predicate>
              <predicate operator="IN" parameter="ecm:tag">
                <field name="ecm_tags" schema="dam_search"/>
              </predicate>
    
            </whereClause>
            <sort ascending="false" column="dc:created"/>
            <pageSize>20</pageSize>
          </coreQueryPageProvider>
    
          <searchLayout name="dam_search_layout"/>
    
          <showPageSizeSelector>true</showPageSizeSelector>
          <useGlobalPageSize>false</useGlobalPageSize>
          <refresh>
            <event>documentChanged</event>
            <event>documentChildrenChanged</event>
          </refresh>
          <cacheKey>only_one_cache</cacheKey>
          <cacheSize>1</cacheSize>
    
          <resultLayouts>
            <layout iconPath="/icons/document_listing_icon_2_columns_icon.png" name="dam_box_listing_ajax" showCSVExport="false" showPDFExport="false" showSyndicationLinks="false" title="label.dam.box.listing.title" translateTitle="true"/>
            <layout iconPath="/icons/document_listing_icon.png" name="dam_listing_ajax" showCSVExport="false" showPDFExport="false" showSyndicationLinks="false" title="label.dam.listing.title" translateTitle="true"/>
          </resultLayouts>
    
          <selectionList>CURRENT_SELECTION</selectionList>
          <actions category="DAM_CURRENT_SELECTION_LIST"/>
    
          <flags>
            <flag>DAM</flag>
          </flags>
        </contentView>
  • <contentView name="dam_saved_searches">
    
          <showTitle>false</showTitle>
    
          <coreQueryPageProvider>
            <property name="coreSession">#{documentManager}</property>
            <whereClause docType="AdvancedSearch">
              <predicate operator="FULLTEXT" parameter="ecm:fulltext">
                <field name="fulltext_all" schema="advanced_search"/>
              </predicate>
              <predicate operator="FULLTEXT" parameter="dc:title">
                <field name="title" schema="advanced_search"/>
              </predicate>
              <predicate operator="BETWEEN" parameter="dc:modified">
                <field name="modified_min" schema="advanced_search"/>
                <field name="modified_max" schema="advanced_search"/>
              </predicate>
              <fixedPart>
                ecm:mixinType = 'DamSearch'
                AND ecm:isProxy = 0 AND ecm:isCheckedInVersion = 0
                AND ecm:currentLifeCycleState != 'deleted'
                AND ecm:parentId = ?
              </fixedPart>
            </whereClause>
            <parameter>#{userWorkspaceManagerActions.currentUserPersonalWorkspace.id}</parameter>
            <sort ascending="true" column="dc:title"/>
            <pageSize>20</pageSize>
          </coreQueryPageProvider>
    
          <searchLayout filterDisplayType="quick" name="document_content_filter"/>
          <showFilterForm>true</showFilterForm>
    
          <showPageSizeSelector>true</showPageSizeSelector>
          <useGlobalPageSize>false</useGlobalPageSize>
          <refresh>
            <event>documentChanged</event>
            <event>documentChildrenChanged</event>
          </refresh>
          <cacheKey>only_one_cache</cacheKey>
          <cacheSize>1</cacheSize>
    
          <resultLayouts>
            <layout iconPath="/icons/document_listing_icon.png" name="document_listing_ajax" showCSVExport="true" showPDFExport="true" title="document_listing" translateTitle="true"/>
          </resultLayouts>
    
          <selectionList>DAM_SAVED_SEARCHES_CURRENT_SELECTION</selectionList>
          <actions category="DAM_SAVED_SEARCHES_CURRENT_SELECTION_LIST"/>
        </contentView>

XML Source

<extension point="contentViews" target="org.nuxeo.ecm.platform.ui.web.ContentViewService">

    <contentView name="dam_search">
      <title>label.dam.search</title>
      <translateTitle>true</translateTitle>
      <emptySentence>label.content.empty.search</emptySentence>
      <translateEmptySentence>true</translateEmptySentence>

      <coreQueryPageProvider>
        <property name="coreSession">#{documentManager}</property>
        <property name="maxResults">DEFAULT_NAVIGATION_RESULTS</property>
        <whereClause docType="DamSearch">
          <fixedPart>
            ecm:mixinType = 'Asset' AND ecm:mixinType != 'HiddenInNavigation' AND ecm:isProxy = 0
            AND ecm:isCheckedInVersion = 0 AND ecm:currentLifeCycleState != 'deleted'
          </fixedPart>
          <predicate operator="FULLTEXT" parameter="ecm:fulltext">
            <field name="ecm_fulltext" schema="dam_search"/>
          </predicate>
          <predicate operator="IN" parameter="dc:creator">
            <field name="dc_creator" schema="dam_search"/>
          </predicate>
          <predicate operator="LIKE" parameter="damc:author">
            <field name="damc_author" schema="dam_search"/>
          </predicate>
          <predicate operator="BETWEEN" parameter="dc:created">
            <field name="dc_created_min" schema="dam_search"/>
            <field name="dc_created_max" schema="dam_search"/>
          </predicate>
          <predicate operator="BETWEEN" parameter="damc:authoringDate">
            <field name="damc_authoringDate_min" schema="dam_search"/>
            <field name="damc_authoringDate_max" schema="dam_search"/>
          </predicate>
          <predicate operator="STARTSWITH" parameter="dc:subjects">
            <field name="dc_subjects" schema="dam_search"/>
          </predicate>
          <predicate operator="STARTSWITH" parameter="dc:coverage">
            <field name="dc_coverage" schema="dam_search"/>
          </predicate>
          <predicate operator="STARTSWITH" parameter="ecm:path">
            <field name="ecm_path" schema="dam_search"/>
          </predicate>
          <predicate operator="IN" parameter="ecm:tag">
            <field name="ecm_tags" schema="dam_search"/>
          </predicate>

        </whereClause>
        <sort ascending="false" column="dc:created"/>
        <pageSize>20</pageSize>
      </coreQueryPageProvider>

      <searchLayout name="dam_search_layout"/>

      <showPageSizeSelector>true</showPageSizeSelector>
      <useGlobalPageSize>false</useGlobalPageSize>
      <refresh>
        <event>documentChanged</event>
        <event>documentChildrenChanged</event>
      </refresh>
      <cacheKey>only_one_cache</cacheKey>
      <cacheSize>1</cacheSize>

      <resultLayouts>
        <layout iconPath="/icons/document_listing_icon_2_columns_icon.png" name="dam_box_listing_ajax" showCSVExport="false" showPDFExport="false" showSyndicationLinks="false" title="label.dam.box.listing.title" translateTitle="true"/>
        <layout iconPath="/icons/document_listing_icon.png" name="dam_listing_ajax" showCSVExport="false" showPDFExport="false" showSyndicationLinks="false" title="label.dam.listing.title" translateTitle="true"/>
      </resultLayouts>

      <selectionList>CURRENT_SELECTION</selectionList>
      <actions category="DAM_CURRENT_SELECTION_LIST"/>

      <flags>
        <flag>DAM</flag>
      </flags>
    </contentView>

    <contentView name="dam_saved_searches">

      <showTitle>false</showTitle>

      <coreQueryPageProvider>
        <property name="coreSession">#{documentManager}</property>
        <whereClause docType="AdvancedSearch">
          <predicate operator="FULLTEXT" parameter="ecm:fulltext">
            <field name="fulltext_all" schema="advanced_search"/>
          </predicate>
          <predicate operator="FULLTEXT" parameter="dc:title">
            <field name="title" schema="advanced_search"/>
          </predicate>
          <predicate operator="BETWEEN" parameter="dc:modified">
            <field name="modified_min" schema="advanced_search"/>
            <field name="modified_max" schema="advanced_search"/>
          </predicate>
          <fixedPart>
            ecm:mixinType = 'DamSearch'
            AND ecm:isProxy = 0 AND ecm:isCheckedInVersion = 0
            AND ecm:currentLifeCycleState != 'deleted'
            AND ecm:parentId = ?
          </fixedPart>
        </whereClause>
        <parameter>#{userWorkspaceManagerActions.currentUserPersonalWorkspace.id}</parameter>
        <sort ascending="true" column="dc:title"/>
        <pageSize>20</pageSize>
      </coreQueryPageProvider>

      <searchLayout filterDisplayType="quick" name="document_content_filter"/>
      <showFilterForm>true</showFilterForm>

      <showPageSizeSelector>true</showPageSizeSelector>
      <useGlobalPageSize>false</useGlobalPageSize>
      <refresh>
        <event>documentChanged</event>
        <event>documentChildrenChanged</event>
      </refresh>
      <cacheKey>only_one_cache</cacheKey>
      <cacheSize>1</cacheSize>

      <resultLayouts>
        <layout iconPath="/icons/document_listing_icon.png" name="document_listing_ajax" showCSVExport="true" showPDFExport="true" title="document_listing" translateTitle="true"/>
      </resultLayouts>

      <selectionList>DAM_SAVED_SEARCHES_CURRENT_SELECTION</selectionList>
      <actions category="DAM_SAVED_SEARCHES_CURRENT_SELECTION_LIST"/>
    </contentView>

  </extension>